package com.webreport.model.db;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "j")
public class Role implements java.io.Serializable{
	
	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(nullable = false, unique = true, length = 50,name="a")
	private String rolename;
	@Column(nullable = false, unique = true, length = 50,name="p")
	private String pname;
	@Column(nullable = false, length = 150,name="b")
	private String description;
	@Column(nullable = false,name="c")
	private boolean enabled;
	@Column(nullable = false,name="d")
	private boolean inheritpermission;
	
	public String getRolename() {
		return rolename;
	}
	
	public void setRolename(String rolename) {
		this.rolename = rolename;
	}
	
	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public String getDescription() {
		return description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
	
	public boolean isEnabled() {
		return enabled;
	}
	
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public boolean isInheritpermission() {
		return inheritpermission;
	}

	public void setInheritpermission(boolean inheritpermission) {
		this.inheritpermission = inheritpermission;
	}
	
	
}
